<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateReTrendsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('re_trends', function (Blueprint $table) {
            $table->increments('trends_id');
            $table->tinyInteger('user_id')->comment('用户id');
            $table->dateTime('trends_time')->comment('动态时间');
            $table->string('trends_img','100')->comment('动态照片');
            $table->tinyInteger('trends_type')->comment('动态类型');
            $table->string('trends_content',2000)->comment('内容');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('re_trends');
    }
}
